

export default [
  // 管理员登录
  {
    path:'/adminLogin',
    component:()=>import('@/views/admin/layout/login.vue'),
  },
  {
    path:'/admin',
    component:()=>import('@/views/admin/layout/layout.vue'),
    redirect:'/admin',
    meta:{
      title:'首页'
    },
    children:[
      {
        path:'',
        meta:{
          //title:'首页',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/main.vue')
      },
      {
        path:'checkPost',
        meta:{
          title:'帖子审核',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/check/post.vue')
      },
      {
        path:'checkVideo',
        meta:{
          title:'戏曲审核',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/check/video.vue')
      },
      {
        path:'checkActivity',
        meta:{
          title:'活动审核',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/check/activity.vue')
      },
      {
        path:'contentPost',
        meta:{
          title:'帖子管理',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/content/post.vue')
      },
      {
        path:'contentVideo',
        meta:{
          title:'戏曲管理',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/content/video.vue')
      },
      {
        path:'contentActivity',
        meta:{
          title:'活动管理',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/content/activity.vue')
      },
      {
        path:'userList',
        meta:{
          title:'用户管理',
          parentPath: '/admin',
        },
        component:()=>import('@/views/admin/views/user/userList.vue')
      },
    ]
  }
]
